/**
* File:TimerOptions.h 
* Options file for user customization
*
* Copyright (c) 2008, J PENG
* All rights reserved.
**/

#pragma once

#include "FormMain.h"

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;


namespace PJJTimer {

	/// <summary>
	/// Summary for TimerOptions
	///
	/// Options/settings class to present the TimerSettings class in a Form format
	/// that allows the user do customized settings. Any custom settings changed in
	/// TimerSettings class should also update this class to reflect the changes in
	/// order to make available to users.
	/// </summary>
	public ref class TimerOptions : public System::Windows::Forms::Form
	{
	public:
		TimerOptions(FormMain ^form)
		{
			InitializeComponent();
			this->mainForm = form;
			LoadOptionsDialogSettings(false);
			if(language != Languages::English) SetLanguages();
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~TimerOptions()
		{
			if (components)
			{
				delete components;
			}
		}

	private:
		FormMain ^mainForm;

	private: System::Windows::Forms::GroupBox^  countdownGroupBox;
	private: System::Windows::Forms::Label^  label_DefaultTime;
	private: System::Windows::Forms::CheckBox^  checkBox_ShowMusicFilename;
	private: System::Windows::Forms::CheckBox^  checkBox_CountdownAtStart;
	private: System::Windows::Forms::Label^  label_AlarmOnAction;

	private: System::Windows::Forms::TextBox^  textBox_seconds;
	private: System::Windows::Forms::TextBox^  textBox_minutes;
	private: System::Windows::Forms::TextBox^  textBox_hours;
	private: System::Windows::Forms::Label^  label_sep2;
	private: System::Windows::Forms::Label^  label_sep1;
	private: System::Windows::Forms::ComboBox^  alarmOnActionsList;


	private: System::Windows::Forms::GroupBox^  groupBox_OtherOptions;
	private: System::Windows::Forms::Label^  label_AlarmOnMusicPath;
	private: System::Windows::Forms::TextBox^  textBox_TimerName;
	private: System::Windows::Forms::TextBox^  textBox_AlarmOnMusicPath;
	private: System::Windows::Forms::Label^  label_TimerName;
	private: System::Windows::Forms::Button^  button_ChooseMusicPath;
	private: System::Windows::Forms::Button^  button_Save;
	private: System::Windows::Forms::Button^  button_Cancel;
	private: System::Windows::Forms::PictureBox^  pictureBox_ValidStatus;
	private: System::Windows::Forms::Button^  button_Reset;
	private: System::Windows::Forms::ToolTip^  tips;
	private: System::Windows::Forms::ComboBox^  languageList;
	private: System::Windows::Forms::Label^  label_TimerLanguage;
	private: System::Windows::Forms::TabControl^  tabAll;
	private: System::Windows::Forms::TabPage^  tabGeneral;
	private: System::Windows::Forms::TabPage^  tabDisplay;
	private: System::Windows::Forms::GroupBox^  groupStopwatch;
	private: System::Windows::Forms::GroupBox^  groupTimer;

	private: System::Windows::Forms::Label^  timer_labelFont;
	private: System::Windows::Forms::Label^  timer_backColorDisplay;
	private: System::Windows::Forms::Label^  timer_labelBackgroundColor;
	private: System::Windows::Forms::Label^  timer_FontColorDisplay;
	private: System::Windows::Forms::Label^  timer_labelFontColor;
	private: System::Windows::Forms::Label^  timer_fontDisplay;
	private: System::Windows::Forms::RadioButton^  timer_radioDefault;

	private: System::Windows::Forms::RadioButton^  timer_radioNone;
	private: System::Windows::Forms::Label^  timer_labelImage;
	private: System::Windows::Forms::TextBox^  timer_customImageDisplay;

	private: System::Windows::Forms::RadioButton^  timer_radioCustom;
	private: System::Windows::Forms::TextBox^  stopwatch_customImageDisplay;

	private: System::Windows::Forms::Label^  stopwatch_labelFontColor;
	private: System::Windows::Forms::RadioButton^  stopwatch_radioCustom;


	private: System::Windows::Forms::Label^  stopwatch_labelFont;
	private: System::Windows::Forms::RadioButton^  stopwatch_radioDefault;


	private: System::Windows::Forms::Label^  stopwatch_labelImage;
	private: System::Windows::Forms::RadioButton^  stopwatch_radioNone;
	private: System::Windows::Forms::Label^  stopwatch_labelBackgroundColor;
	private: System::Windows::Forms::Label^  stopwatch_fontDisplay;
	private: System::Windows::Forms::Label^  stopwatch_backColorDisplay;

	private: System::Windows::Forms::Label^  stopwatch_FontColorDisplay;

	private: System::Windows::Forms::Label^  timer_labelAlign;





private: System::Windows::Forms::Label^  stopwatch_labelAlign;

private: System::Windows::Forms::Panel^  timer_panelBackImage;

private: System::Windows::Forms::Panel^  stopwatch_panelBackImage;
	private: System::Windows::Forms::ComboBox^  timerAlignList;
private: System::Windows::Forms::ComboBox^  stopwatchAlignList;


	private: System::ComponentModel::IContainer^  components;

	private:


#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = (gcnew System::ComponentModel::Container());
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(TimerOptions::typeid));
			this->countdownGroupBox = (gcnew System::Windows::Forms::GroupBox());
			this->pictureBox_ValidStatus = (gcnew System::Windows::Forms::PictureBox());
			this->alarmOnActionsList = (gcnew System::Windows::Forms::ComboBox());
			this->textBox_seconds = (gcnew System::Windows::Forms::TextBox());
			this->textBox_minutes = (gcnew System::Windows::Forms::TextBox());
			this->textBox_hours = (gcnew System::Windows::Forms::TextBox());
			this->label_sep2 = (gcnew System::Windows::Forms::Label());
			this->label_sep1 = (gcnew System::Windows::Forms::Label());
			this->checkBox_ShowMusicFilename = (gcnew System::Windows::Forms::CheckBox());
			this->checkBox_CountdownAtStart = (gcnew System::Windows::Forms::CheckBox());
			this->label_AlarmOnAction = (gcnew System::Windows::Forms::Label());
			this->label_DefaultTime = (gcnew System::Windows::Forms::Label());
			this->groupBox_OtherOptions = (gcnew System::Windows::Forms::GroupBox());
			this->button_ChooseMusicPath = (gcnew System::Windows::Forms::Button());
			this->languageList = (gcnew System::Windows::Forms::ComboBox());
			this->textBox_TimerName = (gcnew System::Windows::Forms::TextBox());
			this->textBox_AlarmOnMusicPath = (gcnew System::Windows::Forms::TextBox());
			this->label_TimerLanguage = (gcnew System::Windows::Forms::Label());
			this->label_TimerName = (gcnew System::Windows::Forms::Label());
			this->label_AlarmOnMusicPath = (gcnew System::Windows::Forms::Label());
			this->button_Save = (gcnew System::Windows::Forms::Button());
			this->button_Cancel = (gcnew System::Windows::Forms::Button());
			this->button_Reset = (gcnew System::Windows::Forms::Button());
			this->tips = (gcnew System::Windows::Forms::ToolTip(this->components));
			this->tabAll = (gcnew System::Windows::Forms::TabControl());
			this->tabGeneral = (gcnew System::Windows::Forms::TabPage());
			this->tabDisplay = (gcnew System::Windows::Forms::TabPage());
			this->groupStopwatch = (gcnew System::Windows::Forms::GroupBox());
			this->stopwatch_FontColorDisplay = (gcnew System::Windows::Forms::Label());
			this->stopwatch_panelBackImage = (gcnew System::Windows::Forms::Panel());
			this->stopwatch_radioNone = (gcnew System::Windows::Forms::RadioButton());
			this->stopwatch_radioDefault = (gcnew System::Windows::Forms::RadioButton());
			this->stopwatch_radioCustom = (gcnew System::Windows::Forms::RadioButton());
			this->stopwatch_customImageDisplay = (gcnew System::Windows::Forms::TextBox());
			this->stopwatch_labelFontColor = (gcnew System::Windows::Forms::Label());
			this->stopwatch_labelFont = (gcnew System::Windows::Forms::Label());
			this->stopwatch_labelImage = (gcnew System::Windows::Forms::Label());
			this->stopwatch_labelBackgroundColor = (gcnew System::Windows::Forms::Label());
			this->stopwatch_fontDisplay = (gcnew System::Windows::Forms::Label());
			this->stopwatch_backColorDisplay = (gcnew System::Windows::Forms::Label());
			this->stopwatch_labelAlign = (gcnew System::Windows::Forms::Label());
			this->groupTimer = (gcnew System::Windows::Forms::GroupBox());
			this->timer_panelBackImage = (gcnew System::Windows::Forms::Panel());
			this->timer_radioNone = (gcnew System::Windows::Forms::RadioButton());
			this->timer_radioDefault = (gcnew System::Windows::Forms::RadioButton());
			this->timer_radioCustom = (gcnew System::Windows::Forms::RadioButton());
			this->timer_customImageDisplay = (gcnew System::Windows::Forms::TextBox());
			this->timer_fontDisplay = (gcnew System::Windows::Forms::Label());
			this->timer_FontColorDisplay = (gcnew System::Windows::Forms::Label());
			this->timer_backColorDisplay = (gcnew System::Windows::Forms::Label());
			this->timer_labelBackgroundColor = (gcnew System::Windows::Forms::Label());
			this->timer_labelAlign = (gcnew System::Windows::Forms::Label());
			this->timer_labelImage = (gcnew System::Windows::Forms::Label());
			this->timer_labelFontColor = (gcnew System::Windows::Forms::Label());
			this->timer_labelFont = (gcnew System::Windows::Forms::Label());
			this->timerAlignList = (gcnew System::Windows::Forms::ComboBox());
			this->stopwatchAlignList = (gcnew System::Windows::Forms::ComboBox());
			this->countdownGroupBox->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox_ValidStatus))->BeginInit();
			this->groupBox_OtherOptions->SuspendLayout();
			this->tabAll->SuspendLayout();
			this->tabGeneral->SuspendLayout();
			this->tabDisplay->SuspendLayout();
			this->groupStopwatch->SuspendLayout();
			this->stopwatch_panelBackImage->SuspendLayout();
			this->groupTimer->SuspendLayout();
			this->timer_panelBackImage->SuspendLayout();
			this->SuspendLayout();
			// 
			// countdownGroupBox
			// 
			this->countdownGroupBox->Controls->Add(this->pictureBox_ValidStatus);
			this->countdownGroupBox->Controls->Add(this->alarmOnActionsList);
			this->countdownGroupBox->Controls->Add(this->textBox_seconds);
			this->countdownGroupBox->Controls->Add(this->textBox_minutes);
			this->countdownGroupBox->Controls->Add(this->textBox_hours);
			this->countdownGroupBox->Controls->Add(this->label_sep2);
			this->countdownGroupBox->Controls->Add(this->label_sep1);
			this->countdownGroupBox->Controls->Add(this->checkBox_ShowMusicFilename);
			this->countdownGroupBox->Controls->Add(this->checkBox_CountdownAtStart);
			this->countdownGroupBox->Controls->Add(this->label_AlarmOnAction);
			this->countdownGroupBox->Controls->Add(this->label_DefaultTime);
			this->countdownGroupBox->Location = System::Drawing::Point(6, 6);
			this->countdownGroupBox->Name = L"countdownGroupBox";
			this->countdownGroupBox->Size = System::Drawing::Size(292, 129);
			this->countdownGroupBox->TabIndex = 0;
			this->countdownGroupBox->TabStop = false;
			this->countdownGroupBox->Text = L"Countdown Timer Default Values";
			// 
			// pictureBox_ValidStatus
			// 
			this->pictureBox_ValidStatus->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"pictureBox_ValidStatus.Image")));
			this->pictureBox_ValidStatus->Location = System::Drawing::Point(225, 21);
			this->pictureBox_ValidStatus->Name = L"pictureBox_ValidStatus";
			this->pictureBox_ValidStatus->Size = System::Drawing::Size(24, 24);
			this->pictureBox_ValidStatus->SizeMode = System::Windows::Forms::PictureBoxSizeMode::CenterImage;
			this->pictureBox_ValidStatus->TabIndex = 16;
			this->pictureBox_ValidStatus->TabStop = false;
			this->tips->SetToolTip(this->pictureBox_ValidStatus, L"Valid");
			this->pictureBox_ValidStatus->Visible = false;
			// 
			// alarmOnActionsList
			// 
			this->alarmOnActionsList->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->alarmOnActionsList->FormattingEnabled = true;
			this->alarmOnActionsList->Location = System::Drawing::Point(139, 50);
			this->alarmOnActionsList->MaxDropDownItems = 10;
			this->alarmOnActionsList->Name = L"alarmOnActionsList";
			this->alarmOnActionsList->Size = System::Drawing::Size(147, 21);
			this->alarmOnActionsList->TabIndex = 15;
			// 
			// textBox_seconds
			// 
			this->textBox_seconds->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->textBox_seconds->Location = System::Drawing::Point(199, 23);
			this->textBox_seconds->MaxLength = 2;
			this->textBox_seconds->Name = L"textBox_seconds";
			this->textBox_seconds->Size = System::Drawing::Size(20, 20);
			this->textBox_seconds->TabIndex = 12;
			this->textBox_seconds->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
			this->tips->SetToolTip(this->textBox_seconds, L"Seconds (Max: 59)");
			this->textBox_seconds->TextChanged += gcnew System::EventHandler(this, &TimerOptions::ValidateTextBoxTime_event_TextChanged);
			this->textBox_seconds->Leave += gcnew System::EventHandler(this, &TimerOptions::ValidateTextBoxTime_event_LossFocus);
			this->textBox_seconds->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &TimerOptions::textBox_key_Press);
			// 
			// textBox_minutes
			// 
			this->textBox_minutes->Location = System::Drawing::Point(169, 23);
			this->textBox_minutes->MaxLength = 2;
			this->textBox_minutes->Name = L"textBox_minutes";
			this->textBox_minutes->Size = System::Drawing::Size(20, 20);
			this->textBox_minutes->TabIndex = 13;
			this->textBox_minutes->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
			this->tips->SetToolTip(this->textBox_minutes, L"Minutes (Max: 59)");
			this->textBox_minutes->TextChanged += gcnew System::EventHandler(this, &TimerOptions::ValidateTextBoxTime_event_TextChanged);
			this->textBox_minutes->Leave += gcnew System::EventHandler(this, &TimerOptions::ValidateTextBoxTime_event_LossFocus);
			this->textBox_minutes->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &TimerOptions::textBox_key_Press);
			// 
			// textBox_hours
			// 
			this->textBox_hours->Location = System::Drawing::Point(139, 23);
			this->textBox_hours->MaxLength = 2;
			this->textBox_hours->Name = L"textBox_hours";
			this->textBox_hours->Size = System::Drawing::Size(20, 20);
			this->textBox_hours->TabIndex = 14;
			this->textBox_hours->TextAlign = System::Windows::Forms::HorizontalAlignment::Center;
			this->tips->SetToolTip(this->textBox_hours, L"Hours (Max: 99)");
			this->textBox_hours->TextChanged += gcnew System::EventHandler(this, &TimerOptions::ValidateTextBoxTime_event_TextChanged);
			this->textBox_hours->Leave += gcnew System::EventHandler(this, &TimerOptions::ValidateTextBoxTime_event_LossFocus);
			this->textBox_hours->KeyPress += gcnew System::Windows::Forms::KeyPressEventHandler(this, &TimerOptions::textBox_key_Press);
			// 
			// label_sep2
			// 
			this->label_sep2->AutoSize = true;
			this->label_sep2->Location = System::Drawing::Point(189, 26);
			this->label_sep2->Name = L"label_sep2";
			this->label_sep2->Size = System::Drawing::Size(10, 13);
			this->label_sep2->TabIndex = 10;
			this->label_sep2->Text = L":";
			// 
			// label_sep1
			// 
			this->label_sep1->AutoSize = true;
			this->label_sep1->Location = System::Drawing::Point(159, 26);
			this->label_sep1->Name = L"label_sep1";
			this->label_sep1->Size = System::Drawing::Size(10, 13);
			this->label_sep1->TabIndex = 11;
			this->label_sep1->Text = L":";
			// 
			// checkBox_ShowMusicFilename
			// 
			this->checkBox_ShowMusicFilename->AutoSize = true;
			this->checkBox_ShowMusicFilename->Checked = true;
			this->checkBox_ShowMusicFilename->CheckState = System::Windows::Forms::CheckState::Checked;
			this->checkBox_ShowMusicFilename->Location = System::Drawing::Point(9, 101);
			this->checkBox_ShowMusicFilename->Name = L"checkBox_ShowMusicFilename";
			this->checkBox_ShowMusicFilename->Size = System::Drawing::Size(165, 17);
			this->checkBox_ShowMusicFilename->TabIndex = 2;
			this->checkBox_ShowMusicFilename->Text = L"Show filename of alarm music";
			this->tips->SetToolTip(this->checkBox_ShowMusicFilename, L"Allow showing information of the music file");
			this->checkBox_ShowMusicFilename->UseVisualStyleBackColor = true;
			// 
			// checkBox_CountdownAtStart
			// 
			this->checkBox_CountdownAtStart->AutoSize = true;
			this->checkBox_CountdownAtStart->Checked = true;
			this->checkBox_CountdownAtStart->CheckState = System::Windows::Forms::CheckState::Checked;
			this->checkBox_CountdownAtStart->Location = System::Drawing::Point(9, 77);
			this->checkBox_CountdownAtStart->Name = L"checkBox_CountdownAtStart";
			this->checkBox_CountdownAtStart->Size = System::Drawing::Size(214, 17);
			this->checkBox_CountdownAtStart->TabIndex = 1;
			this->checkBox_CountdownAtStart->Text = L"Begin countdown when program started";
			this->tips->SetToolTip(this->checkBox_CountdownAtStart, L"Allow timer automatic countdown when the program started");
			this->checkBox_CountdownAtStart->UseVisualStyleBackColor = true;
			// 
			// label_AlarmOnAction
			// 
			this->label_AlarmOnAction->AutoSize = true;
			this->label_AlarmOnAction->Location = System::Drawing::Point(6, 53);
			this->label_AlarmOnAction->Name = L"label_AlarmOnAction";
			this->label_AlarmOnAction->Size = System::Drawing::Size(119, 13);
			this->label_AlarmOnAction->TabIndex = 0;
			this->label_AlarmOnAction->Text = L"Default alarm-on action:";
			// 
			// label_DefaultTime
			// 
			this->label_DefaultTime->AutoSize = true;
			this->label_DefaultTime->Location = System::Drawing::Point(6, 26);
			this->label_DefaultTime->Name = L"label_DefaultTime";
			this->label_DefaultTime->Size = System::Drawing::Size(122, 13);
			this->label_DefaultTime->TabIndex = 0;
			this->label_DefaultTime->Text = L"Default countdown time:";
			// 
			// groupBox_OtherOptions
			// 
			this->groupBox_OtherOptions->Controls->Add(this->button_ChooseMusicPath);
			this->groupBox_OtherOptions->Controls->Add(this->languageList);
			this->groupBox_OtherOptions->Controls->Add(this->textBox_TimerName);
			this->groupBox_OtherOptions->Controls->Add(this->textBox_AlarmOnMusicPath);
			this->groupBox_OtherOptions->Controls->Add(this->label_TimerLanguage);
			this->groupBox_OtherOptions->Controls->Add(this->label_TimerName);
			this->groupBox_OtherOptions->Controls->Add(this->label_AlarmOnMusicPath);
			this->groupBox_OtherOptions->Location = System::Drawing::Point(6, 141);
			this->groupBox_OtherOptions->Name = L"groupBox_OtherOptions";
			this->groupBox_OtherOptions->Size = System::Drawing::Size(292, 91);
			this->groupBox_OtherOptions->TabIndex = 1;
			this->groupBox_OtherOptions->TabStop = false;
			this->groupBox_OtherOptions->Text = L"Other Options";
			// 
			// button_ChooseMusicPath
			// 
			this->button_ChooseMusicPath->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"button_ChooseMusicPath.Image")));
			this->button_ChooseMusicPath->Location = System::Drawing::Point(264, 16);
			this->button_ChooseMusicPath->Name = L"button_ChooseMusicPath";
			this->button_ChooseMusicPath->Size = System::Drawing::Size(22, 22);
			this->button_ChooseMusicPath->TabIndex = 2;
			this->tips->SetToolTip(this->button_ChooseMusicPath, L"Choose a song to be played when alarm on");
			this->button_ChooseMusicPath->UseVisualStyleBackColor = true;
			this->button_ChooseMusicPath->Click += gcnew System::EventHandler(this, &TimerOptions::button_ChooseMusicPath_Click);
			// 
			// languageList
			// 
			this->languageList->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->languageList->FormattingEnabled = true;
			this->languageList->Location = System::Drawing::Point(112, 63);
			this->languageList->MaxDropDownItems = 10;
			this->languageList->Name = L"languageList";
			this->languageList->Size = System::Drawing::Size(147, 21);
			this->languageList->TabIndex = 15;
			// 
			// textBox_TimerName
			// 
			this->textBox_TimerName->Location = System::Drawing::Point(112, 40);
			this->textBox_TimerName->MaxLength = 1024;
			this->textBox_TimerName->Name = L"textBox_TimerName";
			this->textBox_TimerName->Size = System::Drawing::Size(147, 20);
			this->textBox_TimerName->TabIndex = 1;
			this->tips->SetToolTip(this->textBox_TimerName, L"Set the name of this program");
			// 
			// textBox_AlarmOnMusicPath
			// 
			this->textBox_AlarmOnMusicPath->Location = System::Drawing::Point(112, 17);
			this->textBox_AlarmOnMusicPath->MaxLength = 1024;
			this->textBox_AlarmOnMusicPath->Name = L"textBox_AlarmOnMusicPath";
			this->textBox_AlarmOnMusicPath->ReadOnly = true;
			this->textBox_AlarmOnMusicPath->Size = System::Drawing::Size(147, 20);
			this->textBox_AlarmOnMusicPath->TabIndex = 1;
			// 
			// label_TimerLanguage
			// 
			this->label_TimerLanguage->AutoSize = true;
			this->label_TimerLanguage->Location = System::Drawing::Point(7, 66);
			this->label_TimerLanguage->Name = L"label_TimerLanguage";
			this->label_TimerLanguage->Size = System::Drawing::Size(87, 13);
			this->label_TimerLanguage->TabIndex = 0;
			this->label_TimerLanguage->Text = L"Timer Language:";
			// 
			// label_TimerName
			// 
			this->label_TimerName->AutoSize = true;
			this->label_TimerName->Location = System::Drawing::Point(7, 43);
			this->label_TimerName->Name = L"label_TimerName";
			this->label_TimerName->Size = System::Drawing::Size(93, 13);
			this->label_TimerName->TabIndex = 0;
			this->label_TimerName->Text = L"Name of the timer:";
			// 
			// label_AlarmOnMusicPath
			// 
			this->label_AlarmOnMusicPath->AutoSize = true;
			this->label_AlarmOnMusicPath->Location = System::Drawing::Point(7, 20);
			this->label_AlarmOnMusicPath->Name = L"label_AlarmOnMusicPath";
			this->label_AlarmOnMusicPath->Size = System::Drawing::Size(97, 13);
			this->label_AlarmOnMusicPath->TabIndex = 0;
			this->label_AlarmOnMusicPath->Text = L"Alarm-on music file:";
			// 
			// button_Save
			// 
			this->button_Save->DialogResult = System::Windows::Forms::DialogResult::OK;
			this->button_Save->Location = System::Drawing::Point(208, 343);
			this->button_Save->Name = L"button_Save";
			this->button_Save->Size = System::Drawing::Size(54, 24);
			this->button_Save->TabIndex = 2;
			this->button_Save->Text = L"Save";
			this->tips->SetToolTip(this->button_Save, L"Save options and close the dialog");
			this->button_Save->UseVisualStyleBackColor = true;
			// 
			// button_Cancel
			// 
			this->button_Cancel->DialogResult = System::Windows::Forms::DialogResult::Cancel;
			this->button_Cancel->Location = System::Drawing::Point(270, 343);
			this->button_Cancel->Name = L"button_Cancel";
			this->button_Cancel->Size = System::Drawing::Size(54, 24);
			this->button_Cancel->TabIndex = 2;
			this->button_Cancel->Text = L"Cancel";
			this->tips->SetToolTip(this->button_Cancel, L"Close the dialog without saving");
			this->button_Cancel->UseVisualStyleBackColor = true;
			// 
			// button_Reset
			// 
			this->button_Reset->Location = System::Drawing::Point(12, 343);
			this->button_Reset->Name = L"button_Reset";
			this->button_Reset->Size = System::Drawing::Size(54, 24);
			this->button_Reset->TabIndex = 2;
			this->button_Reset->Text = L"Reset";
			this->tips->SetToolTip(this->button_Reset, L"Reset to factory values");
			this->button_Reset->UseVisualStyleBackColor = true;
			this->button_Reset->Click += gcnew System::EventHandler(this, &TimerOptions::button_Reset_Click);
			// 
			// tips
			// 
			this->tips->AutomaticDelay = 2000;
			this->tips->AutoPopDelay = 2000;
			this->tips->InitialDelay = 2000;
			this->tips->ReshowDelay = 1000;
			// 
			// tabAll
			// 
			this->tabAll->Controls->Add(this->tabGeneral);
			this->tabAll->Controls->Add(this->tabDisplay);
			this->tabAll->Location = System::Drawing::Point(12, 12);
			this->tabAll->Name = L"tabAll";
			this->tabAll->SelectedIndex = 0;
			this->tabAll->Size = System::Drawing::Size(312, 316);
			this->tabAll->TabIndex = 3;
			// 
			// tabGeneral
			// 
			this->tabGeneral->Controls->Add(this->countdownGroupBox);
			this->tabGeneral->Controls->Add(this->groupBox_OtherOptions);
			this->tabGeneral->Location = System::Drawing::Point(4, 22);
			this->tabGeneral->Name = L"tabGeneral";
			this->tabGeneral->Padding = System::Windows::Forms::Padding(3);
			this->tabGeneral->Size = System::Drawing::Size(304, 290);
			this->tabGeneral->TabIndex = 0;
			this->tabGeneral->Text = L"General";
			this->tabGeneral->UseVisualStyleBackColor = true;
			// 
			// tabDisplay
			// 
			this->tabDisplay->Controls->Add(this->groupStopwatch);
			this->tabDisplay->Controls->Add(this->groupTimer);
			this->tabDisplay->Location = System::Drawing::Point(4, 22);
			this->tabDisplay->Name = L"tabDisplay";
			this->tabDisplay->Padding = System::Windows::Forms::Padding(3);
			this->tabDisplay->Size = System::Drawing::Size(304, 290);
			this->tabDisplay->TabIndex = 1;
			this->tabDisplay->Text = L"Custom Display";
			this->tabDisplay->UseVisualStyleBackColor = true;
			// 
			// groupStopwatch
			// 
			this->groupStopwatch->Controls->Add(this->stopwatchAlignList);
			this->groupStopwatch->Controls->Add(this->stopwatch_FontColorDisplay);
			this->groupStopwatch->Controls->Add(this->stopwatch_panelBackImage);
			this->groupStopwatch->Controls->Add(this->stopwatch_customImageDisplay);
			this->groupStopwatch->Controls->Add(this->stopwatch_labelFontColor);
			this->groupStopwatch->Controls->Add(this->stopwatch_labelFont);
			this->groupStopwatch->Controls->Add(this->stopwatch_labelImage);
			this->groupStopwatch->Controls->Add(this->stopwatch_labelBackgroundColor);
			this->groupStopwatch->Controls->Add(this->stopwatch_fontDisplay);
			this->groupStopwatch->Controls->Add(this->stopwatch_backColorDisplay);
			this->groupStopwatch->Controls->Add(this->stopwatch_labelAlign);
			this->groupStopwatch->Location = System::Drawing::Point(6, 146);
			this->groupStopwatch->Name = L"groupStopwatch";
			this->groupStopwatch->Size = System::Drawing::Size(292, 134);
			this->groupStopwatch->TabIndex = 0;
			this->groupStopwatch->TabStop = false;
			this->groupStopwatch->Text = L"Stopwatch";
			// 
			// stopwatch_FontColorDisplay
			// 
			this->stopwatch_FontColorDisplay->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
			this->stopwatch_FontColorDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->stopwatch_FontColorDisplay->Location = System::Drawing::Point(137, 13);
			this->stopwatch_FontColorDisplay->Name = L"stopwatch_FontColorDisplay";
			this->stopwatch_FontColorDisplay->Size = System::Drawing::Size(20, 20);
			this->stopwatch_FontColorDisplay->TabIndex = 0;
			this->stopwatch_FontColorDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::stopwatchFontColorDisplay_Click);
			// 
			// stopwatch_panelBackImage
			// 
			this->stopwatch_panelBackImage->Controls->Add(this->stopwatch_radioNone);
			this->stopwatch_panelBackImage->Controls->Add(this->stopwatch_radioDefault);
			this->stopwatch_panelBackImage->Controls->Add(this->stopwatch_radioCustom);
			this->stopwatch_panelBackImage->Location = System::Drawing::Point(79, 83);
			this->stopwatch_panelBackImage->Name = L"stopwatch_panelBackImage";
			this->stopwatch_panelBackImage->Size = System::Drawing::Size(208, 21);
			this->stopwatch_panelBackImage->TabIndex = 4;
			// 
			// stopwatch_radioNone
			// 
			this->stopwatch_radioNone->AutoSize = true;
			this->stopwatch_radioNone->Location = System::Drawing::Point(3, 2);
			this->stopwatch_radioNone->Name = L"stopwatch_radioNone";
			this->stopwatch_radioNone->Size = System::Drawing::Size(51, 17);
			this->stopwatch_radioNone->TabIndex = 1;
			this->stopwatch_radioNone->Text = L"None";
			this->stopwatch_radioNone->UseVisualStyleBackColor = true;
			// 
			// stopwatch_radioDefault
			// 
			this->stopwatch_radioDefault->AutoSize = true;
			this->stopwatch_radioDefault->Checked = true;
			this->stopwatch_radioDefault->Location = System::Drawing::Point(76, 2);
			this->stopwatch_radioDefault->Name = L"stopwatch_radioDefault";
			this->stopwatch_radioDefault->Size = System::Drawing::Size(59, 17);
			this->stopwatch_radioDefault->TabIndex = 1;
			this->stopwatch_radioDefault->TabStop = true;
			this->stopwatch_radioDefault->Text = L"Default";
			this->stopwatch_radioDefault->UseVisualStyleBackColor = true;
			// 
			// stopwatch_radioCustom
			// 
			this->stopwatch_radioCustom->AutoSize = true;
			this->stopwatch_radioCustom->Location = System::Drawing::Point(145, 2);
			this->stopwatch_radioCustom->Name = L"stopwatch_radioCustom";
			this->stopwatch_radioCustom->Size = System::Drawing::Size(60, 17);
			this->stopwatch_radioCustom->TabIndex = 1;
			this->stopwatch_radioCustom->Text = L"Custom";
			this->stopwatch_radioCustom->UseVisualStyleBackColor = true;
			this->stopwatch_radioCustom->CheckedChanged += gcnew System::EventHandler(this, &TimerOptions::stopwatchRadioBox_Click);
			// 
			// stopwatch_customImageDisplay
			// 
			this->stopwatch_customImageDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->stopwatch_customImageDisplay->Location = System::Drawing::Point(79, 108);
			this->stopwatch_customImageDisplay->MaxLength = 1024;
			this->stopwatch_customImageDisplay->Name = L"stopwatch_customImageDisplay";
			this->stopwatch_customImageDisplay->ReadOnly = true;
			this->stopwatch_customImageDisplay->Size = System::Drawing::Size(207, 20);
			this->stopwatch_customImageDisplay->TabIndex = 2;
			this->stopwatch_customImageDisplay->Visible = false;
			this->stopwatch_customImageDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::stopwatchCustomImageDisplay_Click);
			// 
			// stopwatch_labelFontColor
			// 
			this->stopwatch_labelFontColor->AutoSize = true;
			this->stopwatch_labelFontColor->Location = System::Drawing::Point(77, 20);
			this->stopwatch_labelFontColor->Name = L"stopwatch_labelFontColor";
			this->stopwatch_labelFontColor->Size = System::Drawing::Size(58, 13);
			this->stopwatch_labelFontColor->TabIndex = 0;
			this->stopwatch_labelFontColor->Text = L"Font Color:";
			// 
			// stopwatch_labelFont
			// 
			this->stopwatch_labelFont->AutoSize = true;
			this->stopwatch_labelFont->Location = System::Drawing::Point(7, 39);
			this->stopwatch_labelFont->Name = L"stopwatch_labelFont";
			this->stopwatch_labelFont->Size = System::Drawing::Size(31, 13);
			this->stopwatch_labelFont->TabIndex = 0;
			this->stopwatch_labelFont->Text = L"Font:";
			// 
			// stopwatch_labelImage
			// 
			this->stopwatch_labelImage->AutoSize = true;
			this->stopwatch_labelImage->Location = System::Drawing::Point(8, 87);
			this->stopwatch_labelImage->Name = L"stopwatch_labelImage";
			this->stopwatch_labelImage->Size = System::Drawing::Size(67, 13);
			this->stopwatch_labelImage->TabIndex = 0;
			this->stopwatch_labelImage->Text = L"Back Image:";
			// 
			// stopwatch_labelBackgroundColor
			// 
			this->stopwatch_labelBackgroundColor->Location = System::Drawing::Point(169, 20);
			this->stopwatch_labelBackgroundColor->Name = L"stopwatch_labelBackgroundColor";
			this->stopwatch_labelBackgroundColor->Size = System::Drawing::Size(95, 13);
			this->stopwatch_labelBackgroundColor->TabIndex = 0;
			this->stopwatch_labelBackgroundColor->Text = L"Background Color:";
			this->stopwatch_labelBackgroundColor->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			// 
			// stopwatch_fontDisplay
			// 
			this->stopwatch_fontDisplay->BackColor = System::Drawing::Color::WhiteSmoke;
			this->stopwatch_fontDisplay->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
			this->stopwatch_fontDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->stopwatch_fontDisplay->Location = System::Drawing::Point(79, 36);
			this->stopwatch_fontDisplay->Name = L"stopwatch_fontDisplay";
			this->stopwatch_fontDisplay->Size = System::Drawing::Size(207, 20);
			this->stopwatch_fontDisplay->TabIndex = 0;
			this->stopwatch_fontDisplay->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			this->stopwatch_fontDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::stopwatchFontDisplay_Click);
			// 
			// stopwatch_backColorDisplay
			// 
			this->stopwatch_backColorDisplay->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
			this->stopwatch_backColorDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->stopwatch_backColorDisplay->Location = System::Drawing::Point(266, 13);
			this->stopwatch_backColorDisplay->Name = L"stopwatch_backColorDisplay";
			this->stopwatch_backColorDisplay->Size = System::Drawing::Size(20, 20);
			this->stopwatch_backColorDisplay->TabIndex = 0;
			this->stopwatch_backColorDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::stopwatchBackColorDisplay_Click);
			// 
			// stopwatch_labelAlign
			// 
			this->stopwatch_labelAlign->AutoSize = true;
			this->stopwatch_labelAlign->Location = System::Drawing::Point(8, 65);
			this->stopwatch_labelAlign->Name = L"stopwatch_labelAlign";
			this->stopwatch_labelAlign->Size = System::Drawing::Size(57, 13);
			this->stopwatch_labelAlign->TabIndex = 0;
			this->stopwatch_labelAlign->Text = L"Text Align:";
			// 
			// groupTimer
			// 
			this->groupTimer->Controls->Add(this->timerAlignList);
			this->groupTimer->Controls->Add(this->timer_panelBackImage);
			this->groupTimer->Controls->Add(this->timer_customImageDisplay);
			this->groupTimer->Controls->Add(this->timer_fontDisplay);
			this->groupTimer->Controls->Add(this->timer_FontColorDisplay);
			this->groupTimer->Controls->Add(this->timer_backColorDisplay);
			this->groupTimer->Controls->Add(this->timer_labelBackgroundColor);
			this->groupTimer->Controls->Add(this->timer_labelAlign);
			this->groupTimer->Controls->Add(this->timer_labelImage);
			this->groupTimer->Controls->Add(this->timer_labelFontColor);
			this->groupTimer->Controls->Add(this->timer_labelFont);
			this->groupTimer->Location = System::Drawing::Point(6, 6);
			this->groupTimer->Name = L"groupTimer";
			this->groupTimer->Size = System::Drawing::Size(292, 134);
			this->groupTimer->TabIndex = 0;
			this->groupTimer->TabStop = false;
			this->groupTimer->Text = L"Countdown Timer";
			// 
			// timer_panelBackImage
			// 
			this->timer_panelBackImage->Controls->Add(this->timer_radioNone);
			this->timer_panelBackImage->Controls->Add(this->timer_radioDefault);
			this->timer_panelBackImage->Controls->Add(this->timer_radioCustom);
			this->timer_panelBackImage->Location = System::Drawing::Point(79, 83);
			this->timer_panelBackImage->Name = L"timer_panelBackImage";
			this->timer_panelBackImage->Size = System::Drawing::Size(208, 21);
			this->timer_panelBackImage->TabIndex = 4;
			// 
			// timer_radioNone
			// 
			this->timer_radioNone->AutoSize = true;
			this->timer_radioNone->Location = System::Drawing::Point(3, 3);
			this->timer_radioNone->Name = L"timer_radioNone";
			this->timer_radioNone->Size = System::Drawing::Size(51, 17);
			this->timer_radioNone->TabIndex = 1;
			this->timer_radioNone->Text = L"None";
			this->timer_radioNone->UseVisualStyleBackColor = true;
			// 
			// timer_radioDefault
			// 
			this->timer_radioDefault->AutoSize = true;
			this->timer_radioDefault->Checked = true;
			this->timer_radioDefault->Location = System::Drawing::Point(76, 3);
			this->timer_radioDefault->Name = L"timer_radioDefault";
			this->timer_radioDefault->Size = System::Drawing::Size(59, 17);
			this->timer_radioDefault->TabIndex = 1;
			this->timer_radioDefault->TabStop = true;
			this->timer_radioDefault->Text = L"Default";
			this->timer_radioDefault->UseVisualStyleBackColor = true;
			// 
			// timer_radioCustom
			// 
			this->timer_radioCustom->AutoSize = true;
			this->timer_radioCustom->Location = System::Drawing::Point(145, 3);
			this->timer_radioCustom->Name = L"timer_radioCustom";
			this->timer_radioCustom->Size = System::Drawing::Size(60, 17);
			this->timer_radioCustom->TabIndex = 1;
			this->timer_radioCustom->Text = L"Custom";
			this->timer_radioCustom->UseVisualStyleBackColor = true;
			this->timer_radioCustom->CheckedChanged += gcnew System::EventHandler(this, &TimerOptions::timerRadioBox_Click);
			// 
			// timer_customImageDisplay
			// 
			this->timer_customImageDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->timer_customImageDisplay->Location = System::Drawing::Point(79, 108);
			this->timer_customImageDisplay->MaxLength = 1024;
			this->timer_customImageDisplay->Name = L"timer_customImageDisplay";
			this->timer_customImageDisplay->ReadOnly = true;
			this->timer_customImageDisplay->Size = System::Drawing::Size(207, 20);
			this->timer_customImageDisplay->TabIndex = 2;
			this->timer_customImageDisplay->Visible = false;
			this->timer_customImageDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::timerCustomImageDisplay_Click);
			// 
			// timer_fontDisplay
			// 
			this->timer_fontDisplay->BackColor = System::Drawing::Color::WhiteSmoke;
			this->timer_fontDisplay->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
			this->timer_fontDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->timer_fontDisplay->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Regular, 
				System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(161)));
			this->timer_fontDisplay->Location = System::Drawing::Point(79, 36);
			this->timer_fontDisplay->Name = L"timer_fontDisplay";
			this->timer_fontDisplay->Size = System::Drawing::Size(207, 20);
			this->timer_fontDisplay->TabIndex = 0;
			this->timer_fontDisplay->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
			this->timer_fontDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::timerFontDisplay_Click);
			// 
			// timer_FontColorDisplay
			// 
			this->timer_FontColorDisplay->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
			this->timer_FontColorDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->timer_FontColorDisplay->Location = System::Drawing::Point(137, 13);
			this->timer_FontColorDisplay->Name = L"timer_FontColorDisplay";
			this->timer_FontColorDisplay->Size = System::Drawing::Size(20, 20);
			this->timer_FontColorDisplay->TabIndex = 0;
			this->timer_FontColorDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::timerFontColorDisplay_Click);
			// 
			// timer_backColorDisplay
			// 
			this->timer_backColorDisplay->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
			this->timer_backColorDisplay->Cursor = System::Windows::Forms::Cursors::Hand;
			this->timer_backColorDisplay->Location = System::Drawing::Point(266, 13);
			this->timer_backColorDisplay->Name = L"timer_backColorDisplay";
			this->timer_backColorDisplay->Size = System::Drawing::Size(20, 20);
			this->timer_backColorDisplay->TabIndex = 0;
			this->timer_backColorDisplay->Click += gcnew System::EventHandler(this, &TimerOptions::timerBackColorDisplay_Click);
			// 
			// timer_labelBackgroundColor
			// 
			this->timer_labelBackgroundColor->Location = System::Drawing::Point(169, 20);
			this->timer_labelBackgroundColor->Name = L"timer_labelBackgroundColor";
			this->timer_labelBackgroundColor->Size = System::Drawing::Size(95, 13);
			this->timer_labelBackgroundColor->TabIndex = 0;
			this->timer_labelBackgroundColor->Text = L"Background Color:";
			this->timer_labelBackgroundColor->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			// 
			// timer_labelAlign
			// 
			this->timer_labelAlign->AutoSize = true;
			this->timer_labelAlign->Location = System::Drawing::Point(7, 63);
			this->timer_labelAlign->Name = L"timer_labelAlign";
			this->timer_labelAlign->Size = System::Drawing::Size(57, 13);
			this->timer_labelAlign->TabIndex = 0;
			this->timer_labelAlign->Text = L"Text Align:";
			// 
			// timer_labelImage
			// 
			this->timer_labelImage->AutoSize = true;
			this->timer_labelImage->Location = System::Drawing::Point(7, 87);
			this->timer_labelImage->Name = L"timer_labelImage";
			this->timer_labelImage->Size = System::Drawing::Size(67, 13);
			this->timer_labelImage->TabIndex = 0;
			this->timer_labelImage->Text = L"Back Image:";
			// 
			// timer_labelFontColor
			// 
			this->timer_labelFontColor->AutoSize = true;
			this->timer_labelFontColor->Location = System::Drawing::Point(77, 20);
			this->timer_labelFontColor->Name = L"timer_labelFontColor";
			this->timer_labelFontColor->Size = System::Drawing::Size(58, 13);
			this->timer_labelFontColor->TabIndex = 0;
			this->timer_labelFontColor->Text = L"Font Color:";
			// 
			// timer_labelFont
			// 
			this->timer_labelFont->AutoSize = true;
			this->timer_labelFont->Location = System::Drawing::Point(7, 39);
			this->timer_labelFont->Name = L"timer_labelFont";
			this->timer_labelFont->Size = System::Drawing::Size(31, 13);
			this->timer_labelFont->TabIndex = 0;
			this->timer_labelFont->Text = L"Font:";
			// 
			// timerAlignList
			// 
			this->timerAlignList->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->timerAlignList->FormattingEnabled = true;
			this->timerAlignList->Location = System::Drawing::Point(79, 59);
			this->timerAlignList->MaxDropDownItems = 10;
			this->timerAlignList->Name = L"timerAlignList";
			this->timerAlignList->Size = System::Drawing::Size(147, 21);
			this->timerAlignList->TabIndex = 16;
			// 
			// stopwatchAlignList
			// 
			this->stopwatchAlignList->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->stopwatchAlignList->FormattingEnabled = true;
			this->stopwatchAlignList->Location = System::Drawing::Point(79, 59);
			this->stopwatchAlignList->MaxDropDownItems = 10;
			this->stopwatchAlignList->Name = L"stopwatchAlignList";
			this->stopwatchAlignList->Size = System::Drawing::Size(147, 21);
			this->stopwatchAlignList->TabIndex = 16;
			// 
			// TimerOptions
			// 
			this->AcceptButton = this->button_Save;
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->CancelButton = this->button_Cancel;
			this->ClientSize = System::Drawing::Size(334, 379);
			this->Controls->Add(this->tabAll);
			this->Controls->Add(this->button_Cancel);
			this->Controls->Add(this->button_Reset);
			this->Controls->Add(this->button_Save);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
			this->MaximizeBox = false;
			this->MinimizeBox = false;
			this->Name = L"TimerOptions";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterScreen;
			this->Text = L"Options";
			this->countdownGroupBox->ResumeLayout(false);
			this->countdownGroupBox->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox_ValidStatus))->EndInit();
			this->groupBox_OtherOptions->ResumeLayout(false);
			this->groupBox_OtherOptions->PerformLayout();
			this->tabAll->ResumeLayout(false);
			this->tabGeneral->ResumeLayout(false);
			this->tabDisplay->ResumeLayout(false);
			this->groupStopwatch->ResumeLayout(false);
			this->groupStopwatch->PerformLayout();
			this->stopwatch_panelBackImage->ResumeLayout(false);
			this->stopwatch_panelBackImage->PerformLayout();
			this->groupTimer->ResumeLayout(false);
			this->groupTimer->PerformLayout();
			this->timer_panelBackImage->ResumeLayout(false);
			this->timer_panelBackImage->PerformLayout();
			this->ResumeLayout(false);

		}
#pragma endregion

		public:
			void SetLanguages();
			//Load factory settings or custom settings from file
			void LoadOptionsDialogSettings(bool resetToDefaultValues);
			//Save settings to file
			void SaveOptionsDialogSettings();
			String^ GetMusicPath();
			String^ GetTimerName();
			int GetAlarmOnAction();
			int GetTimerLanguage(void);
			// Test whether the language option is changed or not
			bool LanguageChanged(void);

			void SetTextAlignOptions(ContentAlignment align, JPTimer timer);
			void SetBackgroundImageOptions(TimerSettings::BackImageOption option, JPTimer timer);
			ContentAlignment GetTextAlignment(JPTimer timer);
			TimerSettings::BackImageOption GetBackgroundImageOption(JPTimer timer);
			// Update the mainForm variables to reflect the current settings
			void ApplyImmediateSettings(void);
			String^ GetImageFormatFilter();

		private:
			//When textbox lose focus, check/restore the values inside the textboxes if empty
			void ValidateTextBoxesLossFocus();
			void ValidateTextBoxesTextChanged();
			void UpdateFontDisplay(Label ^display, System::Drawing::Font ^font);

			//Validate keys entered for hours, minutes and seconds from users
			System::Void textBox_key_Press(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e);
			System::Void ValidateTextBoxTime_event_TextChanged(System::Object^  sender, System::EventArgs^  e);
			System::Void ValidateTextBoxTime_event_LossFocus(System::Object^  sender, System::EventArgs^  e);
			System::Void button_ChooseMusicPath_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void button_Reset_Click(System::Object^  sender, System::EventArgs^  e);

			System::Void timerFontDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void timerBackColorDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void timerFontColorDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void timerCustomImageDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void timerRadioBox_Click(System::Object^  sender, System::EventArgs^  e);
			//Stopwatch section
			System::Void stopwatchFontDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void stopwatchBackColorDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void stopwatchFontColorDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void stopwatchCustomImageDisplay_Click(System::Object^  sender, System::EventArgs^  e);
			System::Void stopwatchRadioBox_Click(System::Object^  sender, System::EventArgs^  e);
};
}
